package com.oraro.paygatewaybiz.module.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.oraro.paygatewaybiz.module.entity.ChannelEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author jianghuiyong
 * @email 
 * @date 2018-11-16 16:34:25
 */
@Mapper
public interface ChannelDao extends BaseMapper<ChannelEntity> {

    ChannelEntity selectByChannelId(Long channelId);

    ChannelEntity selectByMchAndType(@Param("mchId") Long mchId, @Param("channelType") String channelType);

    List<String> getChannelType(Long mchId);

    ChannelEntity getChannelByWXMch(@Param("wxMchId") String wxMchId, @Param("appId") String appId);

    ChannelEntity getChannelByAppId(String appId);

//    List<ChannelEntity> queryPage(@Param("channelInfo") String channelInfo, @Param("mchId") Long mchId);
}
